<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSectMembersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sect_members', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('sect_id')->comment('门派ID');
            $table->integer('user_id')->comment('成员ID');
            $table->integer('title')->default(90)->comment('状态(10.帮主，20.副帮主，30.护法，90.成员)');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sect_members');
    }
}
